﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management.master" AutoEventWireup="true"
    CodeFile="view-crm-old-leads.aspx.cs" Inherits="admin_view_crm_old_leads" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager runat="server" ID="smgrUser">
    </asp:ScriptManager>
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td colspan="2">
                    <h1>
                        GG CRM - Available Old Leads</h1>
                </td>
            </tr>
            <tr id="trSearch" runat="server">
                <td colspan="2">
                    <b>Report Date</b> :
                    <asp:DropDownList ID="ddlDay" runat="server" ToolTip="Choose Day">
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="11">11</asp:ListItem>
                        <asp:ListItem Value="12">12</asp:ListItem>
                        <asp:ListItem Value="13">13</asp:ListItem>
                        <asp:ListItem Value="14">14</asp:ListItem>
                        <asp:ListItem Value="15">15</asp:ListItem>
                        <asp:ListItem Value="16">16</asp:ListItem>
                        <asp:ListItem Value="17">17</asp:ListItem>
                        <asp:ListItem Value="18">18</asp:ListItem>
                        <asp:ListItem Value="19">19</asp:ListItem>
                        <asp:ListItem Value="20">20</asp:ListItem>
                        <asp:ListItem Value="21">21</asp:ListItem>
                        <asp:ListItem Value="22">22</asp:ListItem>
                        <asp:ListItem Value="23">23</asp:ListItem>
                        <asp:ListItem Value="24">24</asp:ListItem>
                        <asp:ListItem Value="25">25</asp:ListItem>
                        <asp:ListItem Value="26">26</asp:ListItem>
                        <asp:ListItem Value="27">27</asp:ListItem>
                        <asp:ListItem Value="28">28</asp:ListItem>
                        <asp:ListItem Value="29">29</asp:ListItem>
                        <asp:ListItem Value="30">30</asp:ListItem>
                        <asp:ListItem Value="31">31</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlMonth" runat="server">
                        <asp:ListItem Value="01">Jan</asp:ListItem>
                        <asp:ListItem Value="02">Feb</asp:ListItem>
                        <asp:ListItem Value="03">Mar</asp:ListItem>
                        <asp:ListItem Value="04">Apr</asp:ListItem>
                        <asp:ListItem Value="05">May</asp:ListItem>
                        <asp:ListItem Value="06">Jun</asp:ListItem>
                        <asp:ListItem Value="07">Jul</asp:ListItem>
                        <asp:ListItem Value="08">Aug</asp:ListItem>
                        <asp:ListItem Value="09">Sep</asp:ListItem>
                        <asp:ListItem Value="10">Oct</asp:ListItem>
                        <asp:ListItem Value="11">Nov</asp:ListItem>
                        <asp:ListItem Value="12">Dec</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlYear" runat="server">
                        <asp:ListItem Value="2010">2010</asp:ListItem>
                        <asp:ListItem Value="2011">2011</asp:ListItem>
                        <asp:ListItem Value="2012">2012</asp:ListItem>
                        <asp:ListItem Value="2013">2013</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit" />
                </td>
            </tr>
            <asp:Panel runat="server" ID="pnlResult" Visible="false">
            <tr><td colspan="2">&nbsp;</td> </tr>
            <tr>
                <td colspan="2">
                    <b>Total Old Leads&nbsp;&nbsp;=&nbsp;&nbsp;<asp:Label runat="server" ID="lblTotalOldLeads" ForeColor="Blue"></asp:Label></b>
                 
            </tr>
            <tr><td colspan="2">&nbsp;</td> </tr>
            <tr>
                <td colspan="2">
                    <table width="80%" cellpadding="3" cellspacing="3" border="1">
                        <tr>
                            <td width="100">
                                <b>CommStartDate</b>
                            </td>
                            <td width="100">
                                <b>CommEndDate</b>
                            </td>
                            <td width="100">
                                <b>QuoteStartDate</b>
                            </td>
                            <td width="100">
                                <b>QuoteEndDate</b>
                            </td>
                            <td width="100">
                                <b>LeadStartDate</b>
                            </td>
                            <td width="100">
                                <b>LeadEndDate</b>
                            </td>
                        </tr>
                        <tr>
                            <td width="100">
                                <asp:Label runat="server" ID="lblStartCommDate"></asp:Label>
                            </td>
                            <td width="100">
                                <asp:Label runat="server" ID="lblEndCommDate"></asp:Label>
                            </td>
                            <td width="100">
                                <asp:Label runat="server" ID="lblOldStartDate"></asp:Label>
                            </td>
                            <td width="100">
                                <asp:Label runat="server" ID="lblOldEndDate"></asp:Label>
                            </td>
                            <td width="100">
                                <asp:Label runat="server" ID="lblLeadStartDate"></asp:Label>
                            </td>
                            <td width="100">
                                <asp:Label runat="server" ID="lblLeadEndDate"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr><td colspan="2">&nbsp;</td> </tr>
            <tr>
                <td colspan="2">
                    <b>CommStartDate</b>&nbsp;&nbsp;AND&nbsp;&nbsp;<b>CommEndDate</b>
                    &nbsp;&nbsp;-->&nbsp;&nbsp;Last year Commencement date between this date.
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <b>QuoteStartDate</b>&nbsp;&nbsp;AND&nbsp;&nbsp;<b>QuoteEndDate</b>
                    &nbsp;&nbsp;-->&nbsp;&nbsp;Last year Quotes date between this date.
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <b>LeadStartDate</b>&nbsp;&nbsp;AND&nbsp;&nbsp;<b>LeadEndDate</b>
                    &nbsp;&nbsp;-->&nbsp;&nbsp;Don't have Leads in Agent Leads table for this CarId between this date.
                </td>
            </tr>
            </asp:Panel>
        </table>
    </div>
</asp:Content>
